package sf.common.log;

public class LogContext {
    /**
     * 语句
     */
    private String sql;
    /**
     * 参数
     */
    private Object paras;
    /**
     * 结果
     */
    private Object result;

    /**
     * 开始时间
     */
    private Long start;
    /**
     * 结束时间
     */
    private Long end;
    /**
     * 是否开启事务
     */
    private Boolean autoCommit;

    /**
     * 打印的sql
     */
    private StringBuilder printSql;

    /**
     * 执行key
     */
    private String executeKey;

    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }

    public Object getParas() {
        return paras;
    }

    public void setParas(Object paras) {
        this.paras = paras;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }

    public Long getStart() {
        return start;
    }

    public void setStart(Long start) {
        this.start = start;
    }

    public Long getEnd() {
        return end;
    }

    public void setEnd(Long end) {
        this.end = end;
    }

    public Boolean getAutoCommit() {
        return autoCommit;
    }

    public void setAutoCommit(Boolean autoCommit) {
        this.autoCommit = autoCommit;
    }

    public StringBuilder getPrintSql() {
        return printSql;
    }

    public void setPrintSql(StringBuilder printSql) {
        this.printSql = printSql;
    }

    public String getExecuteKey() {
        return executeKey;
    }

    public void setExecuteKey(String executeKey) {
        this.executeKey = executeKey;
    }
}
